
<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
      <meta name="description" content="404">
      <meta name="keywords" content="404">
      <title>跳转提示</title>
      <link href="/public/static/404/bootstrap.min.css" rel="stylesheet">
      <link href="/public/static/404/osahan.css" rel="stylesheet">
   </head>
   <body id="page-top">
      <section class="pt-4 pb-5 error-page-main-inner">
         <div class="container">
            <div class="row">
               <div class="col-md-12 block-404 text-center">
               <?php switch ($code) {?>
                  <?php case 1:?>
                  <h1></h1>
                  <h1><?php echo(strip_tags($msg));?>.</h1>
                  <?php break;?>
                  <?php case 0:?>
                  <h1><img class="img-fluid" src="/public/static/404/404.png" alt="404"></h1>
                  <h1><?php echo(strip_tags($msg));?></h1>
                  <p class="caption-text">您访问的页面不存在或已被删除<!--  (｡•ˇ‸ˇ•｡) --></p>
                  <?php break;?>
               <?php } ?>
                  <p class="caption-text">页面自动 <a id="href" href="<?php echo($url);?>">跳转</a> 等待时间： <b id="wait"><?php echo($wait);?></b></p>
                  <div class="mt-5">
                     <a href="/" class="btn btn-primary btn-lg"><i class="icofont icofont-ui-home"></i> 返回首页</a>
                  </div>
               </div>
            </div>
         </div>
      </section>
    <script type="text/javascript">
	(function(){
	var wait = document.getElementById('wait'),href = document.getElementById('href').href;
	var interval = setInterval(function(){
		var time = --wait.innerHTML;
		if(time <= 0) {
			location.href = href;
			clearInterval(interval);
		};
	}, 1000);
	})();
	</script>
   </body>
</html>